<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        footer{
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin: 15px;
        }
        img{
            width: 60px;
            height: 60px;
        }
        .box footer .zhong .d2,.d3{
            color: orange;
        }
    </style>
</head>

<body>
    <header>热门单品</header>
    <div id="app" class="box">
        <footer class="item" v-for="(ccc,index) in shuzu" v-bind:key="index">
            <div class="left">
                <img v-bind:src="ccc.pic" alt="">
            </div>
            <div class="zhong">
                <div class="d1">{{ccc.name}}</div>
                <div class="d2"> {{ccc.namea}}</div>
                <div class="d3"> {{ccc.nameb}}</div>
                <div class="d4"> {{ccc.namec}}</div>
            </div>
            <div class="right">
                <button>立即兑换</button>
            </div>
        </footer>
    </div>
</body>

</html>
<script src="../vue-2.5.21.js"></script>
<script>
    var v = new Vue({
        el: '#app',
        data: {
            shuzu: [
                { id: 1, pic: './img/123.jpg', name: '橙子三斤快递到家', namea: '兑换后入手价8.9元',nameb: '10',namec: '适用门店'},
                { id: 2, pic: './img/222.jpg', name: '什么两斤快递到家', namea: '兑换后入手价7.9元',nameb: '30',namec: '适用门店'},
                { id: 3, pic: './img/hua2.jpg', name: '水果捞999克', namea: '兑换后入手价6.9元',nameb: '60',namec: '适用门店'},
            ]
        }, 
        computed: {},
        watch: {},
        methods: {},
        filters: {}, 
        directives: {}, 
        components: {},
    })
</script>